package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Dish;
import com.itheima.reggie.domain.Setmeal;

import java.util.List;

//套餐
public interface SetmealService {
    //分页查询套餐
    Page<Setmeal> findByPage(Integer pageNum, Integer pageSize, String name);
    //新增套餐
    void save(Setmeal setmeal);
    //修改套餐
    //回显
    Setmeal findById(Long setId);
    //修改套餐内容
    void updateSetmeal(Setmeal setmeal);
    //启停售
    void updateStatus(Integer status, List<Long> ids);
    //套餐删除
    void deleteSetmeal(List<Long> ids);
    //套餐列表
    List<Setmeal> list(Long categoryId, Integer status);
    //套餐包含的菜品回显
    List<Dish> findDishBySetmealId(Long setmealId);
}
